import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import path from 'path';
export default defineConfig({
  publicDir: './src/styles',
  build: {
    lib: {
      entry: path.resolve(__dirname, './src/index.ts'),
      name: 'Guide',
      fileName: (format) => `guide.${format}.js`
    },
    outDir: path.resolve(__dirname, './dist'),
    cssCodeSplit: true,
  },
  plugins: [dts({
    include: ['./src/index.ts',]
  })],
})